#ifndef _SINGLETON_H_
#define _SINGLETON_H_

namespace tool {

template<typename T>
T* Singleton() {
    static T instance;
    return &instance;
}

}

using tool::Singleton;

#endif
